package dongbai.soft.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import dongbai.soft.utils.getUUID;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author SingDeer
 * @email
 * @date 2023-06-26 14:01:21
 */
@Data
@TableName("supplier")
@NoArgsConstructor
@AllArgsConstructor
public class SupplierEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 供货商唯一标识符
     */
    @TableId
    private String sid;
    /**
     * 供货商名
     */
    private String name;
    /**
     * 供货商品标识符集合
     */
    private String pidlist;
    /**
     * 状态，0表示删除，1表示正常
     */
    private Boolean status;

    public SupplierEntity(String name) {
        this.sid = getUUID.get6UUID();
        this.name = name;
        this.pidlist = "";
        this.status = true;
    }

}
